<?php
include './config.php';
include './lib/Eolin.Service.Core.Enhance.php';
$db = new DBQueryi(NULL,$config['database']['host'], $config['database']['id'], $config['database']['pwd'], $config['database']['db']);
$tbs = $db->queryAll("SELECT * FROM {$config['database']['prefix']}_RemoteResponses ORDER BY id DESC");
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="google-site-verification" content="iQfEJ2AW3l6jmWrwuLgSpoL_4SHOANgbgLh_xtjyBMQ" />
<title>monkeyFly</title>
<style type="text/css">
body {
	margin:0;
	padding:0;
	font-size:13px;
	font-family: georgia, sans-serif;
}
a.id {
	font-size:13px;
	padding-top:5px;
}
div.rows {
	padding-top:5px;
}
.row {
	padding-bottom:20px;
}
.logo {
	display:block;
}
.id {
	font-size:12px;
	color:#666;
}
.help {
	color:#999;
	font-size:11px;
}
.title {
	font-weight:bold;
}
.firefox {
	background-color:#090;
	color:#FFF;
	-moz-border-radius:5px;
	text-decoration:none;
	padding:3px;
	font-size:12px;
	font-weight:bold;
}
.subinfo {
	color:#666;
}
.logo {
	margin-top:20px;
	text-align:center;
	font-size:30px;
}
.subtitle {
	font-size:13px;
	margin-top:-10px;
}
.footer {
	text-align:center;
	padding:10px;
}
h1 {
	font-size:30px;
	padding:0;
	margin:0;
}
h2 {
	font-size:20px;
	margin-bottom:5px;
}
.row {
	float:left;
	width:100%;
}
.row .desc {
}
.row .desc, .row .desc input {
	color:red;
	font-weight:bold;
}
.row .desc input {
	border:none;
	width:400px;
}
.row li {
	margin-left:-10px;
	line-height:18px;
}
.row .nickname a,.row .site {
	color:#0CF;
	padding-right:10px;
}
a {
	text-decoration:none;
}
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
	$('#canvas').ready(
		function(){
		//	$('#canvas').css('marginLeft',-$('#canvas').width()/2);
		//	$('#canvas').css('marginTop',-$('#canvas').height()/2);
		}
	)
	$(window).ready(
		function(){
		}
	);
	$.fn.addTimeline=function(data){
		$(this).each(function(){
			for(var i = 0 ; i < data.length; i++){
				$(this).append('<li><span class="nickname">@'+data[i]['from_user']+'</a>'+data[i]['text']+'</li>');
			}
		
			return this;
		})
	}
</script>
<script src="http://platform.twitter.com/anywhere.js?id=V0NnRkzOmWpXDO1LVWiESw&v=1">
  </script>
  <script type="text/javascript">
     twttr.anywhere(function(twitter) {
              twitter.hovercards();
     });
  </script>
</head>
<body>
<div style="padding:10px;">
<h1>Hello new twitter.<br>
Goodbye old monkeyfly.</h1>
  
<br>
<br>
<blockquote style="width:400px; margin:10px;">
    몽키플라이의 개발자들은 우리가 쓰고 싶은 트위터를 만들어 보자는 작은 동기로 몽키플라이를 만들었습니다. 그래서 몽키플라이의 목표는 몽키플라이가 필요 없어지는 것이었습니다. 트위터가 새롭게 개편했습니다. 개편된 트위터를 보니 이제는 몽키플라이가 물어나도 좋을만큼 멋진 모습이네요. 이제 몽키플라이는 일단 물러 갑니다. 여러분들이 있어서 몽키플라이가 있었습니다. 혹시 새로운 트위터가 다시 불편해진다면 다시 돌아오겠습니다.      
</blockquote>
<br>
<br>
developer<br>
@egoing<br>
@graphittie
  
traslator<br>
@newspaperman<br>
@youngseek<br>
@kooljaek<br>
@cynthyoo
  
<br>
<br>
Third party<br>
@lunamoth (lunafly)<br>
@jugug
  
<br>
<br>
<br>
<br>
:)
</div>
<?
if(false){
?>

<div id="canvas" style="">
  <div class="logo">
    <h1>monkeyFly</h1>
    <!--<span class="subtitle">이봐 트위터! 날 따라와!</span>-->
  </div>
  <div class="rows">
    <ul>
      <li class="row install">
        <h2>Install</h2>
        <ul>
          <li><a href="<?php echo $config['firefox_host']?>" target="_blank">Firefox add-on</a></li>
          <li><a href="<?php echo $config['userscript_host']?>" target="_blank">Firefox Greasemonkey</a></li>
			<li><a href="<?php echo $config['userscript_host']?>" target="_blank">Google Chrome Userscript</a></li>
          <li><a href="<?php echo $config['chrome_host']?>" target="_blank">Google Chrome extension</a></li>
		  <li><a href="/MonkeyFly.safariextz.zip">Safari 5 extension</a> - <a href="http://safariextensions.tumblr.com/post/680219521/post-how-to-enable-extensions-06-09-10" target="_blank" style="font-size:11px;">How to Enable Extensions in Safari 5</a></li>
          <li><a href="http://j.mp/93Y1UO" target="_blank">Safari under 5(UserScript)</a> - <a href="http://looah.com/article_translations/read_article/130" target="_blank" style="font-size:11px;">How to Use MonkeyFly in Safari</a></li>
        </ul>
      </li>
      <li class="row people">
        <h2>@People</h2>
        <ul>
          <li><a href="http://twitter.com/egoing" target="_blank">@egoing(Developer)</a></li>
          <li><a href="http://twitter.com/graphittie" target="_blank">@graphittie(Developer)</a></li>
          <li><a href="http://twitter.com/newspaperman" target="_blank">@newspaperman(English support)</a></li>
          <li><a href="http://twitter.com/youngseek" target="_blank">@youngseek(English support)</a></li>
          <li><a href="http://twitter.com/lunamoth" target="_blank">@lunamoth(Tester)</a></li>
        </ul>
      </li>
      <li class="row review">
        <h2>Review</h2>
        <ul>
          <li> <span class="desc">Review Trackback ::
            <input type="text" value="http://monkeyflycms.egoing.net/monkeyfly/trackback/2">
            </input>
            </span> </li>
          <?php
foreach($tbs as $tb){
?>
          <li><span class="site"><?=htmlspecialchars($tb['site'])?></span> <a href="<?=htmlspecialchars($tb['url'])?>" target="_blank">
            <?=htmlspecialchars($tb['subject'])?>
            </a> </li>
          <?php
}
?>
        </ul>
      </li>
      <li class="row search">
        <h2>#monkeyfly</h2>
        <ul class="timeline">
        </ul>
      </li>
      <script type="text/javascript">
			$.ajax({
				url:'<?=$config['url']?>/control.php?mode=search&rpp=100',
				success:function(result){
					var data = eval('('+result+')');
					$('.search .timeline').addTimeline(data.results);
				}
			});
		</script>
    </ul>
  </div>
  <div class="footer">
    <!--		트위터가 너무 좋아져서 몽키플라이가 더 이상 필요 없어지는 것이 몽키플라이의 목표입니다.-->
  </div>
</div>
<?
}
?>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-10611151-1");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>
